﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gl_mes.DAL.MesDB
{
    [Table("user_site")]
    public class UserSite
    {
        /// <summary>
        /// id，主键，自增长
        /// </summary>
        [Column("id"),Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [Column("usr_id")]
        public int UserID { get; set; }

        /// <summary>
        /// 用户帐号
        /// </summary>
        [Column("usr_num")]
        public string UserNumber { get; set; }


        /// <summary>
        /// 用户姓名
        /// </summary>
        [Column("usr_name")]
        public string UserName { get; set; }


        /// <summary>
        /// 站点ID
        /// </summary>
        [Column("site_id")]
        public int SiteID { get; set; }

        /// <summary>
        /// 是否父站点
        /// </summary>
        [Column("is_parent")]
        public int IsParent { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        [Column("site_name")]
        public string SiteName { get; set; }


        /// <summary>
        /// 建档人
        /// </summary>
        [Column("create_user")]
        public string CreateUser { get; set; }


        /// <summary>
        /// 建档日期
        /// </summary>
        [Column("create_date")]
        public DateTime? CreateDate { get; set; }
    }
}
